<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%String path = request.getContextPath();%>
<form id="pagerForm" method="post" action="<%=path%>/memberCardUpgradeLog/listMemberCardUpgradeLog.action">
	<input type="hidden" name="pageRequest" value="1" />
	<input type="hidden" name="pageNum" value="${paginator.pageIndex}" />
	<input type="hidden" name="numPerPage" value="${paginator.pageSize}" />
</form>
<div class="pageHeader">
	<div class="searchBar">
		<form onsubmit="return navTabSearch(this);" rel="pagerForm" action="<%=path%>/memberCardUpgradeLog/listMemberCardUpgradeLog.action" method="post">
			<ul class="searchContent">
				<li>
					<label style="text-align: right;">会员卡编码：</label>
					<input type="text" name="memberCardUpgradeLogVO.schemeCode" value='<s:property value="memberCardUpgradeLogVO.schemeCode"/>'/>
				</li>
				<li>
					<label style="text-align: right;">会员姓名：</label>
					<input type="text" name="memberCardUpgradeLogVO.userName" value='<s:property value="memberCardUpgradeLogVO.userName"/>'/>
				</li>
			</ul>
			<ul class="searchContent">
				<li>
					<label style="text-align: right;">升级日期：</label>
					从<input type="text" name="memberCardUpgradeLogVO.startDate" class="date" readonly="false" value="${memberCardUpgradeLogVO.startDate}" size="10"/>
					到<input type="text" name="memberCardUpgradeLogVO.endDate" class="date" readonly="false" value="${memberCardUpgradeLogVO.endDate}" size="10"/>
				</li>
				<li style="width:450px">
					<label style="text-align: right;">升级方式：</label>
					<select name="memberCardUpgradeLogVO.upgradeType" class="combox">
						<option value=""${memberCardUpgradeLogVO.upgradeType==null?" selected='true'":""}>所有升级记录</option>
						<option value="0"${memberCardUpgradeLogVO.upgradeType==0?" selected='true'":""}>手动升级记录</option>
						<option value="1"${memberCardUpgradeLogVO.upgradeType==1?" selected='true'":""}>自动升级记录</option>
					</select>
				</li>
			</ul>
			<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
			</div>
		</form>
	</div>
</div>
<div class="pageContent">
	<table class="table" width="100%" layoutH="137">
		<thead>
			<tr>
				<th width="8%">会员姓名</th>
				<th width="10%">会员卡编码</th>
				<th width="10%">所属商家</th>
				<th width="5%">升级方式</th>
				<th width="50%">备注</th>
				<th width="10%">升级时间</th>
				<th width="8%">操作者</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator value="memberCardUpgradeLogList" id="memberCardUpgradeLog">
				<tr rel="<s:property value="id"/>">
					<td>${memberCardUpgradeLog.memberCard.memberName}</td>
					<td>${memberCardUpgradeLog.memberCard.schemeCode}</td>
					<td>${memberCardUpgradeLog.customer.name}</td>
					<td>${memberCardUpgradeLog.operUser==null?"系统自动":"手动升级"}</td>
					<td title="${remark}">${remark}</td>
					<td><s:date format="yyyy-MM-dd HH:mm:ss" name="addTime"/></td>
					<td>${memberCardUpgradeLog.operUser.name}</td>
				</tr>
			</s:iterator>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
				<span>显示</span>
				<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
					<option value="15" <c:if test="${paginator.pageSize==15}">selected='selected'</c:if> >15</option>
					<option value="30" <c:if test="${paginator.pageSize==30}">selected='selected'</c:if> >30</option>
					<option value="50" <c:if test="${paginator.pageSize==50}">selected='selected'</c:if> >50</option>
					<option value="100" <c:if test="${paginator.pageSize==100}">selected='selected'</c:if> >100</option>
					<option value="200" <c:if test="${paginator.pageSize==200}">selected='selected'</c:if> >200</option>
				</select>
				<span>条，共${paginator.totalCount}条</span>
			</div>
			<div class="pagination" targetType="navTab" totalCount="${paginator.totalCount}" 
				numPerPage="${paginator.pageSize}" pageNumShown="10" currentPage="${paginator.pageIndex}"></div>
	</div>
</div>